include $(top_srcdir)/src/common.mk

AUTOMAKE_OPTIONS = gnu

if HAVE_JA3
  JA3_FLAGS = -lcrypto
else
  JA3_FLAGS = 
endif

EXTRA_DIST =            packets/packet01.pcap packets/README.rst \
                        packets/packet02.pcap \
                        packets/packet03.pcap \
                        packets/packet04.pcap \
                        packets/packet05.pcap \
                        packets/packet06.pcap \
                        packets/packet07.pcap \
                        packets/packet08.pcap \
                        packets/packet09.pcap \
                        packets/packet10.pcap \
                        packets/packet11.pcap \
                        packets/packet12.pcap \
                        packets/packet13.pcap \
                        packets/packet14.pcap \
                        packets/packet15.pcap \
                        packets/packet16.pcap \
                        packets/packet17.pcap \
                        packets/packet18.pcap \
                        packets/packet19.pcap \
                        packets/packet20.pcap \
                        packets/packet21.pcap \
                        packets/packet22.pcap \
                        packets/packet23.pcap \
                        packets/packet24.pcap \
                        packets/packet25.pcap \
                        packets/packet26.pcap \
                        packets/packet27.pcap \
                        packets/packet28.pcap \
                        packets/packet29.pcap \
                        packets/packet30.pcap \
                        packets/packet31.pcap \
                        packets/packet32.pcap \
                        packets/packet33.pcap \
                        packets/packet34.pcap \
                        packets/packet35.pcap \
                        packets/packet36.pcap

noinst_HEADERS =	test_ssl.h SSLInfo.h

TEST = test_ssl

check_PROGRAMS = test_ssl

test_ssl_SOURCES = 	../../Multiplexer.cc ../../ElapsedTime.cc \
			../../Packet.cc \
			../../IPAddress.cc \
			../../Protocol.cc \
			../../Logger.cc \
			../../FlowForwarder.cc \
			../../AnomalyManager.cc \
			../../StringCache.cc ../../StringMap.cc \
			../ethernet/EthernetProtocol.cc \
			../ip/IPProtocol.cc \
			../ip6/IPv6Protocol.cc \
			../../ipset/IPSetManager.cc \
			../../ipset/IPSet.cc \
			../../ipset/IPBloomSet.cc \
			../../ipset/IPRadixTree.cc \
			../tcp/TCPProtocol.cc \
			../../Flow.cc \
			../../flow/FlowTable.cc \
			../../flow/FlowManager.cc \
			../../names/DomainNameManager.cc \
			../../names/DomainNode.cc \
			../../names/DomainName.cc \
			$(TEST_FLOW_OBJECTS) \
			SSLProtocol.cc test_ssl.cc

test_ssl_CPPFLAGS = $(EXTRA_TEST_CPPFLAGS) -I../.. $(BOOST_CPPFLAGS) -DSTAND_ALONE_TEST 
test_ssl_LDFLAGS = $(EXTRA_TEST_LDFLAGS)
test_ssl_LDADD   = $(BOOST_LDFLAGS) $(LOGGING_FLAGS) $(JA3_FLAGS) -lboost_system -lpthread -lboost_unit_test_framework

CLEANFILES = *.o *.lo *.so

MAINTAINERCLEANFILES = \
        $(srcdir)/Makefile \
        $(srcdir)/Makefile.in \
        `rm -rf $(srcdir)/build `

